package com.pcl.mvvm.network.entity

import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.pcl.mvvm.data.db.converters.ArticlesTypeConverters

/**
 * @author :Aleyn
 * time: 2019/11/01
 */

/**
 * curPage : 2
 * datas : [{"apkLink":"http://www.wanandroid.com/blogimgs/e8faab6b-ecb1-4bc2-af96-f7e5039032b3.apk","author":"GcsSloop","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"Diycode 社区客户端，可以更方便的在手机上查看社区信息。应用采用了数据多级缓存，并且实现了离线浏览(访问过一次的页面会被缓存下来，没有网络也可查看)，相比于网页版，在一定程度上可以减少在手机上访问的流量消耗。由于目前功能尚未完善，还存在一些已知或未知的bug，所以当前版本仅为 beta 测试版。","envelopePic":"http://www.wanandroid.com/blogimgs/8876bcc1-7d12-4443-bf95-3f9a698685a6.png","id":2241,"link":"http://www.wanandroid.com/blog/show/2033","niceDate":"2018-01-29","origin":"","projectLink":"https://github.com/GcsSloop/diycode","publishTime":1517236491000,"title":"【开源完整项目】diycode客户端","visible":1,"zan":0},{"apkLink":"http://www.wanandroid.com/blogimgs/13736f4b-6ab5-4223-a851-7354cd6d066e.apk","author":"Will-Ls","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"一款新闻客户端, MVP + RxJava + Retrofit + Dagger2\r\n","envelopePic":"http://www.wanandroid.com/blogimgs/5f1511d9-9d8b-41bd-b392-68dbe620f613.png","id":2239,"link":"http://www.wanandroid.com/blog/show/2031","niceDate":"2018-01-29","origin":"","projectLink":"https://github.com/Will-Ls/WeiYue","publishTime":1517232315000,"title":" 【开源完整项目】微阅客户端","visible":1,"zan":0},{"apkLink":"","author":"骑小猪看流星","chapterId":230,"chapterName":"打包","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2238,"link":"http://www.jianshu.com/p/332525b09a88  ","niceDate":"2018-01-29","origin":"","projectLink":"","publishTime":1517210113000,"title":"十分钟快速集成美团多渠道打包","visible":1,"zan":0},{"apkLink":"","author":"箫鉴哥","chapterId":97,"chapterName":"音视频","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2237,"link":"https://yq.aliyun.com/articles/8637","niceDate":"2018-01-29","origin":"","projectLink":"","publishTime":1517207717000,"title":"Android 音频技术开发总结","visible":1,"zan":0},{"apkLink":"","author":" 陈文超happylion","chapterId":185,"chapterName":"组件化","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2236,"link":"https://mp.weixin.qq.com/s/Tw-04it4_G4AgUmRO8imaw","niceDate":"2018-01-29","origin":"","projectLink":"","publishTime":1517192099000,"title":"美团猫眼电影android模块化实战","visible":1,"zan":0},{"apkLink":"http://www.wanandroid.com/blogimgs/57a54bc0-5855-433c-8af6-59c0a68fc0c5.apk","author":"wangzailfm","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"使用Kotlin构建的wanandroid客户端\r\nKotlin + MVP + Kotlin-Coroutines + Retrofit2(GsonCallAdapterFactory + CoroutineCallAdapterFactory)\r\n\r\n","envelopePic":"http://www.wanandroid.com/blogimgs/2f98fdd8-523f-48fc-a2a0-d20b90041b34.jpeg","id":2235,"link":"http://www.wanandroid.com/blog/show/2029","niceDate":"2018-01-28","origin":"","projectLink":"https://github.com/wangzailfm/WanAndroidClient","publishTime":1517150407000,"title":"【开源完整项目】wanandroid客户端","visible":1,"zan":0},{"apkLink":"http://www.wanandroid.com/blogimgs/2840d80f-b099-417f-a00b-17e1910bd21a.apk","author":"DuanJiaNing","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"【我的音乐-Musicoco】 音乐播放器，功能：通过耳机和通知栏快捷控制音乐播放、创建歌单、本地歌曲搜索、记忆播放、自动切换到夜间模式、定时停止播放、应用主题自定义以及播放界面风格选择等功能。\r\n","envelopePic":"http://www.wanandroid.com/blogimgs/fb84255b-697a-48f8-9cba-d785b22266fd.jpg","id":2234,"link":"http://www.wanandroid.com/blog/show/2027","niceDate":"2018-01-28","origin":"","projectLink":"https://github.com/DuanJiaNing/Musicoco","publishTime":1517149791000,"title":"【开源完整项目】Musicoco 管理本地音乐的app","visible":1,"zan":0},{"apkLink":"http://www.wanandroid.com/blogimgs/538bddd9-eda7-4568-800c-2cd1bc77ab93.apk","author":"Kyson","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"Android开发者在性能检测方面的工具一直比较匮乏，仅有的一些工具，比如Android Device Monitor，使用起来也有些繁琐，使用起来对开发者有一定的要求。而线上的App监控更无从谈起。所以需要有一个系统能够提供Debug和Release阶段全方位的监控，更深入地了解对App运行时的状态。\r\n","envelopePic":"http://www.wanandroid.com/blogimgs/8483ff55-692b-4ac3-ae01-d7605b870d1f.png","id":2233,"link":"http://www.wanandroid.com/blog/show/2026","niceDate":"2018-01-28","origin":"","projectLink":"https://github.com/Kyson/AndroidGodEye/","publishTime":1517149661000,"title":"【开源完整项目】 AndroidGodEye 监控Android数据指标","visible":1,"zan":0},{"apkLink":"http://www.wanandroid.com/blogimgs/e4d48142-8668-487d-8d37-83a6566555ba.apk","author":"Rayhahah","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"一款资讯类应用~~~o(*￣▽￣*)ブ，MVP+Retrofit+Rxjava\r\n","envelopePic":"http://www.wanandroid.com/blogimgs/b8ed8741-75f9-47a8-8148-0540644f3f83.jpg","id":2232,"link":"http://www.wanandroid.com/blog/show/2024","niceDate":"2018-01-28","origin":"","projectLink":"https://github.com/Rayhahah/EasySports","publishTime":1517149531000,"title":"【开源完整项目】仿虎扑应用EasySport","visible":1,"zan":0},{"apkLink":"http://www.wanandroid.com/blogimgs/be28932a-5946-4eed-89ee-9d919ba7ec75.apk","author":"maoruibin","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"一个实现『划词翻译』功能的 Android 应用 ，可能是目前 Android 市场上翻译效率最高的一款应用。\r\n\r\n","envelopePic":"http://www.wanandroid.com/blogimgs/9249453d-0578-410f-8237-3c6e204c0c4b.gif","id":2231,"link":"http://www.wanandroid.com/blog/show/2025","niceDate":"2018-01-28","origin":"","projectLink":"https://github.com/maoruibin/TranslateApp","publishTime":1517149256000,"title":"【开源完整项目】咕咚翻译App","visible":1,"zan":0},{"apkLink":"","author":"LRH1993","chapterId":294,"chapterName":"完整项目","collect":false,"courseId":13,"desc":"Google在今年的IO大会上宣布，将Kotlin作为Android开发的一级语言。作为紧跟潮流的弄潮儿，对kotlin稍做了解后，发现其有优秀的特性，所以就开始了学习，而Eyepetizer-in-Kotlin便是对kotlin进行学习后的阶段性成果。","envelopePic":"http://www.wanandroid.com/blogimgs/d8e91478-5f79-460b-8e39-42fc166b5519.png","id":2230,"link":"http://www.wanandroid.com/blog/show/2028","niceDate":"2018-01-28","origin":"","projectLink":"https://github.com/LRH1993/Eyepetizer-in-Kotlin","publishTime":1517149004000,"title":"【开源完整项目】开眼视频学习项目","visible":1,"zan":0},{"apkLink":"","author":" JensenChen","chapterId":307,"chapterName":"Apk诞生记","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2229,"link":"https://juejin.im/post/5a69c0ccf265da3e2a0dc9aa","niceDate":"2018-01-26","origin":"","projectLink":"","publishTime":1516936185000,"title":"10分钟了解Android项目构建流程","visible":1,"zan":0},{"apkLink":"","author":"BryantPang","chapterId":254,"chapterName":"新闻资讯","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2228,"link":"https://github.com/BryantPang/ReadHub","niceDate":"2018-01-26","origin":"","projectLink":"","publishTime":1516935679000,"title":"ReadHub 新闻资讯客户端","visible":1,"zan":0},{"apkLink":"","author":"DuanJiaNing","chapterId":256,"chapterName":"音乐、视频类","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2227,"link":"https://github.com/DuanJiaNing/Musicoco","niceDate":"2018-01-26","origin":"","projectLink":"","publishTime":1516935645000,"title":"Musicoco  管理本地音乐的app","visible":1,"zan":0},{"apkLink":"","author":"Kyson","chapterId":255,"chapterName":"工具类","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2226,"link":"https://github.com/Kyson/AndroidGodEye/","niceDate":"2018-01-26","origin":"","projectLink":"","publishTime":1516935614000,"title":"AndroidGodEye 监控Android数据指标","visible":1,"zan":0},{"apkLink":"","author":"小编","chapterId":292,"chapterName":"pdf电子书","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2225,"link":"http://wanandroid.com/blog/show/2022","niceDate":"2018-01-25","origin":"","projectLink":"","publishTime":1516872111000,"title":"1月24日 区块链线上分享 ppt下载","visible":1,"zan":0},{"apkLink":"","author":"看书的小蜗牛","chapterId":99,"chapterName":"具体案例","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2224,"link":"https://mp.weixin.qq.com/s/tHkltAvN1Ila8L3brdAYGQ","niceDate":"2018-01-25","origin":"","projectLink":"","publishTime":1516846304000,"title":"仿天猫、京东拖拽商品详情","visible":1,"zan":0},{"apkLink":"","author":"一口仨馍","chapterId":306,"chapterName":"多线程与并发","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2223,"link":"https://mp.weixin.qq.com/s/KuKROR8c4Bc1CdXE6AxB2g","niceDate":"2018-01-25","origin":"","projectLink":"","publishTime":1516846283000,"title":"应该了解的一些并发基础知识","visible":1,"zan":0},{"apkLink":"","author":"小编","chapterId":305,"chapterName":"各类工具","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2221,"link":"http://www.wanandroid.com/blog/show/2021","niceDate":"2018-01-24","origin":"","projectLink":"","publishTime":1516778328000,"title":"工具分享 ：Jad 实现Class转Java文件","visible":1,"zan":0},{"apkLink":"","author":"MikanMu","chapterId":304,"chapterName":"基础源码","collect":false,"courseId":13,"desc":"","envelopePic":"","id":2220,"link":"http://blog.csdn.net/mhmyqn/article/details/48087247","niceDate":"2018-01-24","origin":"","projectLink":"","publishTime":1516771306000,"title":"java枚举类型的实现原理","visible":1,"zan":0}]
 * offset : 20
 * over : false
 * pageCount : 53
 * size : 20
 * total : 1049
 */
@Entity(tableName = "home_data")
@TypeConverters(ArticlesTypeConverters::class)
data class HomeListBean(
    @PrimaryKey
    val curPage: Int,
    val offset: Int,
    val over: Boolean,
    val pageCount: Int,
    val size: Int,
    val total: Int,
    val datas: MutableList<ArticlesBean>
)


data class NavTypeBean(
    val children: List<Any>,
    val courseId: Int,
    val id: Int,
    val name: String,
    val order: Int,
    val parentChapterId: Int,
    val userControlSetTop: Boolean,
    val visible: Int
)

data class UsedWeb(
    val icon: String,
    val id: Int,
    val link: String,
    val name: String,
    val order: Int,
    val visible: Int
)
